<?php
/*Route::get('admin-author-admin', ['as' => 'admin_author_admin', 'uses' => 'AuthorController@admin']);//管理中心

//检测机构管理中心
Route::get('admin-author-checkpointDetail', ['as' => 'admin_author_checkpointDetail', 'uses' => 'AuthorController@checkpointDetail']);
//维修店管理中心
Route::get('admin-author-repairStoreDetail', ['as' => 'admin_author_repairStoreDetail', 'uses' => 'AuthorController@repairStoreDetail']);
//检测手机号或门店名称是否存在
Route::get('admin-author-data-monitoring', ['as' => 'admin_author_data_monitoring', 'uses' => 'AuthorController@dataMonitoring']);

Route::post('admin-author-adminUpdate', ['as' => 'admin_author_adminUpdate', 'uses' => 'AuthorController@adminUpdate']);//管理员编辑管理中心
Route::post('admin-author-repairUpdate', ['as' => 'admin_author_repairUpdate', 'uses' => 'AuthorController@repairUpdate']);//管理员编辑管理中心
Route::get('admin-author-openMap', ['as' => 'admin_author_openMap', 'uses' => 'AuthorController@openMap']);//地图拾取
Route::put('admin-author-delService/{id}', ['as' => 'admin_author_delService', 'uses' => 'AuthorController@delService']);//删除服务类型*/

//检测机构类型
Route::get('admin-checkpoint-type', ['as' => 'admin_checkpoint_type', 'uses' => 'CheckpointTypeController@index']);//检测机构类型列表
Route::get('admin-checkpoint-type-create', ['as' => 'admin_checkpoint_type_create', 'uses' => 'CheckpointTypeController@create']);//添加检测机构类型
Route::post('admin-checkpoint-type-store', ['as' => 'admin_checkpoint_type_store', 'uses' => 'CheckpointTypeController@store']);//添加检测机构类型
Route::get('admin-checkpoint-type-edit', ['as' => 'admin_checkpoint_type_edit', 'uses' => 'CheckpointTypeController@edit']);//编辑检测机构类型
Route::post('admin-checkpoint-type-update', ['as' => 'admin_checkpoint_type_update', 'uses' => 'CheckpointTypeController@update']);//编辑检测机构类型
Route::delete('admin-checkpoint-type-del', ['as' => 'admin_checkpoint_type_del', 'uses' => 'CheckpointTypeController@del']);//删除

//维修店列表
Route::get('admin-repairstore-index', ['as' => 'admin_repairstore_index', 'uses' => 'RepairstoreController@index']);

//维修类型（商品类型）
Route::get('admin-repair-type-index', ['as' => 'admin_repair_type_index', 'uses' => 'RepairTypeController@index']);//维修店类型列表
Route::get('admin-repair-type-create', ['as' => 'admin_repair_type_create', 'uses' => 'RepairTypeController@create']);//添加维修店类型
Route::post('admin-repair-type-store', ['as' => 'admin_repair_type_store', 'uses' => 'RepairTypeController@store']);//添加维修店类型
Route::get('admin-repair-type-edit', ['as' => 'admin_repair_type_edit', 'uses' => 'RepairTypeController@edit']);//编辑维修店类型
Route::post('admin-repair-type-update', ['as' => 'admin_repair_type_update', 'uses' => 'RepairTypeController@update']);//编辑维修店类型
Route::delete('admin-repair-type-del', ['as' => 'admin_repair_type_del', 'uses' => 'RepairTypeController@del']);//删除

//商城管理（商品类型）
Route::get('admin-goods-cate-index', ['as' => 'admin_goods_cate_index', 'uses' => 'GoodsCateController@index']);//列表
Route::get('admin-goods-cate-create', ['as' => 'admin_goods_cate_create', 'uses' => 'GoodsCateController@create']);//添加
Route::post('admin-goods-cate-store', ['as' => 'admin_goods_cate_store', 'uses' => 'GoodsCateController@store']);//添加
Route::get('admin-goods-cate-edit', ['as' => 'admin_goods_cate_edit', 'uses' => 'GoodsCateController@edit']);//编辑
Route::post('admin-goods-cate-update', ['as' => 'admin_goods_cate_update', 'uses' => 'GoodsCateController@update']);//编辑
Route::delete('admin-goods-cate-del', ['as' => 'admin_goods_cate_del', 'uses' => 'GoodsCateController@del']);//删除

//商城管理（商品列表）
Route::get('admin-goods-index', ['as' => 'admin_goods_index', 'uses' => 'GoodsController@index']);//列表
Route::get('admin-goods-create', ['as' => 'admin_goods_create', 'uses' => 'GoodsController@create']);//添加
Route::post('admin-goods-store', ['as' => 'admin_goods_store', 'uses' => 'GoodsController@store']);//添加
Route::get('admin-goods-edit', ['as' => 'admin_goods_edit', 'uses' => 'GoodsController@edit']);//编辑
Route::post('admin-goods-update', ['as' => 'admin_goods_update', 'uses' => 'GoodsController@update']);//编辑
Route::delete('admin-goods-del', ['as' => 'admin_goods_del', 'uses' => 'GoodsController@del']);//删除
Route::put('admin-goods-changeState', ['as' => 'admin_goods_changeState', 'uses' => 'GoodsController@changeState']);//上下架
Route::post('admin-goods-delProduct', ['as' => 'admin_goods_delProduct', 'uses' => 'GoodsController@delProduct']);//删除商品规格属性
Route::post('admin-goods-delPic', ['as' => 'admin_goods_delPic', 'uses' => 'GoodsController@delPic']);//删除商品图片
//根据句条件获取服务的二级分类(ajax二级联动)
Route::get('admin-maintain-list', ['as' => 'admin_maintain_list', 'uses' => 'GoodsController@get_maintain_list']);


//商城管理（商品规格属性）
Route::get('admin-goods-specs-cate-index', ['as' => 'admin_goods_specs_cate_index', 'uses' => 'GoodsSpecsCateController@index']);//列表
Route::get('admin-goods-specs-cate-create', ['as' => 'admin_goods_specs_cate_create', 'uses' => 'GoodsSpecsCateController@create']);//添加
Route::post('admin-goods-specs-cate-store', ['as' => 'admin_goods_specs_cate_store', 'uses' => 'GoodsSpecsCateController@store']);//添加
Route::get('admin-goods-specs-cate-edit', ['as' => 'admin_goods_specs_cate_edit', 'uses' => 'GoodsSpecsCateController@edit']);//编辑
Route::post('admin-goods-specs-cate-update', ['as' => 'admin_goods_specs_cate_update', 'uses' => 'GoodsSpecsCateController@update']);//编辑
Route::delete('admin-goods-specs-cate-del', ['as' => 'admin_goods_specs_cate_del', 'uses' => 'GoodsSpecsCateController@del']);//删除


//取消订单，退货原因管理
Route::get('admin-cancel-reason-index', ['as' => 'admin_cancel_reason_index', 'uses' => 'CancelReasonController@index']);//列表
Route::get('admin-cancel-reason-create', ['as' => 'admin_cancel_reason_create', 'uses' => 'CancelReasonController@create']);//添加
Route::post('admin-cancel-reason-store', ['as' => 'admin_cancel_reason_store', 'uses' => 'CancelReasonController@store']);//添加
Route::get('admin-cancel-reason-edit', ['as' => 'admin_cancel_reason_edit', 'uses' => 'CancelReasonController@edit']);//编辑
Route::post('admin-cancel-reason-update', ['as' => 'admin_cancel_reason_update', 'uses' => 'CancelReasonController@update']);//编辑
Route::delete('admin-cancel-reason-delete', ['as' => 'admin_cancel_reason_delete', 'uses' => 'CancelReasonController@delete']);//删除


//商品标签管理
Route::get('admin-goods-tag-index', ['as' => 'admin_goods_tag_index', 'uses' => 'GoodsSaleTagController@index']);//列表
Route::get('admin-goods-tag-create', ['as' => 'admin_goods_tag_create', 'uses' => 'GoodsSaleTagController@create']);//添加
Route::post('admin-goods-tag-store', ['as' => 'admin_goods_tag_store', 'uses' => 'GoodsSaleTagController@store']);//添加
Route::get('admin-goods-tag-edit', ['as' => 'admin_goods_tag_edit', 'uses' => 'GoodsSaleTagController@edit']);//编辑
Route::post('admin-goods-tag-update', ['as' => 'admin_goods_tag_update', 'uses' => 'GoodsSaleTagController@update']);//编辑
Route::delete('admin-goods-tag-delete', ['as' => 'admin_goods_tag_delete', 'uses' => 'GoodsSaleTagController@delete']);//删除


//门店列表
Route::get('admin-shop-index', ['as' => 'admin_shop_index', 'uses' => 'ShopController@index']);

/*超级管理员-店铺管理*/
Route::get('admin-shop-goods-list', ['as' => 'admin_shop_goods_list','route_name' => '维修店商品列表', 'uses' => 'ShopController@admin_shop_goods_list']);//维修店商品列表
Route::get('admin-shop-repair-list', ['as' => 'admin_shop_repair_list','route_name' => '维修店服务商品列表', 'uses' => 'ShopController@admin_shop_repair_list']);//维修店服务商品列表

//商户加盟审核列表
Route::get('admin-shop-verify', ['as' => 'admin_shop_verify', 'uses' => 'ShopController@verify_list']);
//商户申请详情
Route::get('admin-shop-info', ['as' => 'admin_shop_info', 'uses' => 'ShopController@shop_info']);
//商户申请审核
Route::post('admin-shop-examine', ['as' => 'admin_shop_examine', 'uses' => 'ShopController@examine']);
//维修店修改为直营店
Route::put('admin-shop-changeType', ['as' => 'admin_shop_changeType', 'uses' => 'ShopController@change_type']);


//保养（订单列表）
Route::get('admin-maintain-order-list', ['as' => 'admin_maintain_order_list', 'uses' => 'OrderRepairstoreController@maintain_order_list']);
//服务（订单列表）
Route::get('admin-order-repairstore', ['as' => 'admin_order_repairstore', 'uses' => 'OrderRepairstoreController@index']);  //服务订单
//服务订单模块(订单 详情)
Route::get('admin-order-repairstore-detail', ['as' => 'admin_order_repairstore_detail', 'uses' => 'OrderRepairstoreController@detail']);//服务订单详情
//服务订单模块(订单 删除)
Route::delete('admin-order-repairstore-del', ['as' => 'admin_order_repairstore_del', 'uses' => 'OrderRepairstoreController@del']);//删除
//服务订单模块(订单 状态处理)
Route::post('admin-order-repairstore-chang-status', ['as' => 'admin_order_repairstore_chang_status', 'uses' => 'OrderRepairstoreController@changStatus']);

//积分商城订单模块删除
Route::delete('admin-order-delete', ['as' => 'admin_order_delete', 'uses' => 'OrderController@delete']);//删除
//积分商城订单模块（订单详情处理）
Route::post('admin-order-chang-status', ['as' => 'admin_order_chang_status', 'uses' => 'OrderController@changStatus']);
//积分商城订单模块（快速发货）
Route::post('admin-order-deliver-goods', ['as' => 'admin_order_deliver_goods', 'uses' => 'OrderController@deliverGoods']);
Route::get('admin-order-integral', ['as' => 'admin_order_integral', 'uses' => 'OrderController@index_integral']);  //积分订单
Route::get('admin-order-details', ['as' => 'admin_order_details', 'uses' => 'OrderController@order_details']);  //订单详情


//普通商品订单列表
Route::get('admin-store-order-index', ['as' => 'admin_store_order_index', 'uses' => 'StoreOrderController@index']); //普通商品订单
Route::get('admin-store-order-detail', ['as' => 'admin_store_order_detail', 'uses' => 'StoreOrderController@detail']);//订单详情
Route::delete('admin-store-order-delete', ['as' => 'admin_store_order_delete', 'uses' => 'StoreOrderController@delete']);//删除
Route::post('admin-store-order-send-goods', ['as' => 'admin_store_order_send_goods', 'uses' => 'StoreOrderController@sendGoods']);//快速发货
Route::post('admin-store-order-chang-status', ['as' => 'admin_store_order_chang_status', 'uses' => 'StoreOrderController@changStatus']);//订单处理操作

//保养配置
Route::get('admin-maintain-index', ['as' => 'admin_maintain_index', 'uses' => 'MaintainConfigController@index']);
//添加保养配置
Route::get('admin-maintain-create', ['as' => 'admin_maintain_create', 'uses' => 'MaintainConfigController@create']);
Route::post('admin-maintain-store', ['as' => 'admin_maintain_store', 'uses' => 'MaintainConfigController@store']);
//编辑保养配置
Route::get('admin-maintain-edit', ['as' => 'admin_maintain_edit', 'uses' => 'MaintainConfigController@edit']);
Route::post('admin-maintain-update', ['as' => 'admin_maintain_update', 'uses' => 'MaintainConfigController@update']);
//删除
Route::delete('admin-maintain-delete', ['as' => 'admin_maintain_delete', 'uses' => 'MaintainConfigController@delete']);

//保养手册
Route::get('admin-handbook-index', ['as' => 'admin_handbook_index', 'uses' => 'HandbookController@index']);
//添加
Route::get('admin-handbook-create', ['as' => 'admin_handbook_create', 'uses' => 'HandbookController@create']);
Route::post('admin-handbook-store', ['as' => 'admin_handbook_store', 'uses' => 'HandbookController@store']);
//编辑
Route::get('admin-handbook-edit', ['as' => 'admin_handbook_edit', 'uses' => 'HandbookController@edit']);
Route::post('admin-handbook-update', ['as' => 'admin_handbook_update', 'uses' => 'HandbookController@update']);
//删除
Route::delete('admin-handbook-delete', ['as' => 'admin_handbook_delete', 'uses' => 'HandbookController@delete']);


//普通商品订单列表导出EXCEL
Route::get('admin-export-order', ['as' => 'admin_export_order', 'uses' => 'StoreOrderController@export']);

//积分商品订单列表导出EXCEL
Route::get('admin-export-integral-order', ['as' => 'admin_export_integral_order', 'uses' => 'OrderController@export']);

//服务-微信订单列表导出EXCEL
Route::get('admin-export-repair-order', ['as' => 'admin_export_repair_order', 'uses' => 'OrderRepairstoreController@export']);


/*************************************商品售后*************************************/
Route::get('admin-store-order-refund-list', ['as' => 'admin_store_order_refund_list', 'uses' => 'StoreOrderRefundController@order_refund_list']);//商品售后列表
Route::get('admin-store-order-refund-detail', ['as' => 'admin_store_order_refund_detail', 'uses' => 'StoreOrderRefundController@order_refund_detail']);//商品售后详情
Route::post('admin-store-order-refund-handle', ['as' => 'admin_store_order_refund_handle', 'uses' => 'StoreOrderRefundController@order_refund_handle']);//商品售后操作
Route::get('admin-store-order-refund-export', ['as' => 'admin_store_order_refund_export', 'uses' => 'StoreOrderRefundController@export']);//导出EXCEL

Route::get('admin-app-index', ['as' => 'admin_app_index', 'uses' => 'AppController@index']);//配置APP下载连接
Route::get('admin-app-edit', ['as' => 'admin_app_edit', 'uses' => 'AppController@edit']);
Route::post('admin-app-update', ['as' => 'admin_app_store', 'uses' => 'AppController@update']);